﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Linq;

namespace Test
{
    public partial class Form1 : Form
    {
        Form view = null;
        ViewModels.LegtionMVVMDemoVM viewModel = null;
        public Form1()
        {
            InitializeComponent();
 
        }

        private void button1_Click(object sender, EventArgs e)
        {
           view= Presenters.LegtionMVVMPresenter.Show(out viewModel);
        }

        private void button2_Click(object sender, EventArgs e)
        {
            viewModel.Dispose();
            //view.Close();
 
        }

        private void button3_Click(object sender, EventArgs e)
        {
            List<string> list = new List<string> { "hello", "world", "dady", "godaddy" };
            MessageBox.Show(list.FirstOrDefault());
        }

       
    }
}
